imcontextsimple: Load ~/.Compose unconditionally
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Apr 2020 12:47:02 +0000 (08:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 2 Apr 2020 13:02:05 +0000 (09:02 -0400)
There is nothing display-specific in the ~/.Compose file,
so we can just try to load it without looking at the
display we are on.

gtk/gtkimcontextsimple.c

index 51229a54dc74002cc4915520a5c307b1e566e232..1b809a12e5ebbdbbec0b4b9d8b582a03c148e3c3 100644 (file)
@@ -1438,23 +1438,11 @@ gtk_im_context_simple_set_client_widget  (GtkIMContext *context,
                                           GtkWidget    *widget)
 {
   GtkIMContextSimple *im_context_simple = GTK_IM_CONTEXT_SIMPLE (context);
-  gboolean run_compose_table = FALSE;
 
   if (!widget)
     return;
 
-  /* Load compose table for X11 or Wayland. */
-#ifdef GDK_WINDOWING_X11
-  if (GDK_IS_X11_DISPLAY (gtk_widget_get_display (widget)))
-    run_compose_table = TRUE;
-#endif
-#ifdef GDK_WINDOWING_WAYLAND
-  if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
-    run_compose_table = TRUE;
-#endif
-
-  if (run_compose_table)
-    init_compose_table_async (im_context_simple, NULL, NULL, NULL);
+  init_compose_table_async (im_context_simple, NULL, NULL, NULL);
 }
 
 /**